﻿<Window x:Class="WpfImageDuplicates.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:y="clr-namespace:WpfImageDuplicates"  Closing="Window_Closing"
        Title="Window1" Width="800" Height="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="26"/>
            <RowDefinition Height="0.7*"/>            
            <RowDefinition Height="0.3*"/>
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>
        <GridSplitter Height="5" Background="Blue" Grid.Row="2" VerticalAlignment="Top" x:Name="splitter1" HorizontalAlignment="Stretch"></GridSplitter>
        <y:TopCommandBar Grid.Row="0" x:Name="topCommandBar" Width="Auto" HorizontalAlignment="Stretch"
                         WantRemoveDuplicates="RemoveDuplicates" WantViewFullImage="ViewFullImage" WantCompare="WantCompare"
                         ChangeThumbnailSize="ChangeThumbnailSize" />
        <y:ImageCollectionView SizeChanged="collectionView_SizeChanged" x:Name="collectionView" Grid.Row="1" FileImageCollectionViewModel="{Binding}" WantView="WantView" />
        <y:CommandBar Grid.Row="2" Visibility="Collapsed" WantRemoveDuplicates="RemoveDuplicates" WantViewFullImage="ViewFullImage" WantCompare="WantCompare" Width="Auto" HorizontalAlignment="Stretch"/>
        <y:FilterCollectionView Grid.Row="2" x:Name="filterView" Margin="0,8,0,0"/>
        <y:DirectoriesView Grid.Row="3" x:Name="directoriesView"/>
    </Grid>
</Window>
